package cn.wolfcode.mp.qo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {

    private boolean success = true; //默认为true
    private String msg; //用于返回错误信息的
    private Object data;    //用于成功时返回数据给前端

    public JsonResult(boolean success,String msg){
        this.success = success;
        this.msg = msg;
    }



    public JsonResult(Object data){
        this.data = data;
    }

}
